<div id="headerNavPlace" class="nav navHorizontal" style="height:200px">
    <ul>
        <li> <?php echo $this->Html->link('Localisation', array('controller' => 'Places', 'action' => 'index'));?></li>
        
        <?php
        if ($currentUser && !empty($currentUser['UserGroup']['id'])){
            
            echo '<li>'.$this->Html->link('Mon Groupe', array('controller' => 'Groups', 'action' => 'home')).'</li>';
            echo '<li>'.$this->Html->link('Ma Ville', array('controller' => 'PlaceCities', 'action' => 'view',$currentGroup['Group']['cities_id'])).'</li>';
        }
        else if ($currentUser){
            echo '<li>'.$this->Html->link('Rejoindre un groupe', array('controller' => 'Places', 'action' => 'index')).'</li>';
        }
        ?>
    </ul>
</div>


<div id="headerNavUserAccount" class="nav navHorizontal">
    <ul>

<?php
if (!empty($isConnected) && $isConnected){
?>

        <li> <?php echo $this->Html->link('Mon compte', array('controller' => 'users', 'action' => 'home'));?></li>
        <li> <?php echo $this->Html->link('Logout', array('controller' => 'users', 'action' => 'logout'));?></li>                     
<?php
}
else{
?>
        <li> <?php echo $this->Html->link('Inscription', array('controller' => 'users', 'action' => 'inscription'));?></li>
        <li> <?php echo $this->Html->link('Login', array('controller' => 'users', 'action' => 'login'));?></li>                        


<?php
}
?>    </ul>
</div>